#ifndef CHAT_H
#define CHAT_H

#include <QDialog>
#include <QListWidget>
#include <QUdpSocket>

class Chat : public QDialog
{
Q_OBJECT
QListWidget * m_listwidget;
QLineEdit * m_ipedit;
QLineEdit * m_portedit;
QLineEdit * m_textedit;
QPushButton * m_button;
QUdpSocket * m_socket;

public:
    explicit Chat(const char * ip, const char * port);

signals:
public slots:
    void sendMessage();
    void readMessage();
};

#endif // CHAT_H
